<?php
class ORMpz_task_track extends ORMBase {
  public function __construct() {
    parent::__construct('pz_task_track');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    $epObject->track_id = isset($object->track_id) ? $object->track_id : '';
    $epObject->task_id = isset($object->task_id) ? $object->task_id : 0;
    $epObject->parent_trackId = isset($object->parent_trackId) ? $object->parent_trackId : '';
    $epObject->transition_id = isset($object->transition_id) ? $object->transition_id : 0;
    $epObject->is_canceled = isset($object->is_canceled) ? $object->is_canceled : 0;
    $epObject->is_completed = isset($object->is_completed) ? $object->is_completed : 0;
    $epObject->is_modified = isset($object->is_modified) ? $object->is_modified : 0;
    $epObject->model_id = isset($object->model_id) ? $object->model_id : 0;
    $epObject->state_id = isset($object->state_id) ? $object->state_id : 0;
    $epObject->branch = isset($object->branch) ? $object->branch : '';
    $epObject->created_date = isset($object->created_date) ? $object->created_date : 0;
    $epObject->deadline = isset($object->deadline) ? $object->deadline : 0;
    $epObject->photographer_id = isset($object->photographer_id) ? $object->photographer_id : 0;
    $epObject->photographer2_id = isset($object->photographer2_id) ? $object->photographer2_id : 0;
    $epObject->designer_id = isset($object->designer_id) ? $object->designer_id : 0;
    $epObject->customer_id = isset($object->customer_id) ? $object->customer_id : 0;
    $epObject->bride_name = isset($object->bride_name) ? $object->bride_name : '';
    $epObject->groom_name = isset($object->groom_name) ? $object->groom_name : '';
    $epObject->is_wedding = isset($object->is_wedding) ? $object->is_wedding : 0;
    $epObject->wedding_date = isset($object->wedding_date) ? $object->wedding_date : 0;
    $epObject->culture1 = isset($object->culture1) ? $object->culture1 : '';
    $epObject->culture2 = isset($object->culture2) ? $object->culture2 : '';
    $epObject->ceremony = isset($object->ceremony) ? $object->ceremony : '';
    $epObject->reception = isset($object->reception) ? $object->reception : '';
    $epObject->wedding_color = isset($object->wedding_color) ? $object->wedding_color : '';
    $epObject->pi_quantity = isset($object->pi_quantity) ? $object->pi_quantity : 0;
    $epObject->sent_date = isset($object->sent_date) ? $object->sent_date : 0;
    $epObject->received_date = isset($object->received_date) ? $object->received_date : 0;
    $epObject->receiver = isset($object->receiver) ? $object->receiver : '';
    $epObject->company = isset($object->company) ? $object->company : '';
    $epObject->code = isset($object->code) ? $object->code : '';
    $epObject->package_number = isset($object->package_number) ? $object->package_number : 0;
    $epObject->comment = isset($object->comment) ? $object->comment : '';
    $epObject->custom_assignee_id = isset($object->custom_assignee_id) ? $object->custom_assignee_id : 0;
    $epObject->custom_assigner_id = isset($object->custom_assigner_id) ? $object->custom_assigner_id : 0;
    $epObject->custom_task = isset($object->custom_task) ? $object->custom_task : '';
    $epObject->is_signed = isset($object->is_signed) ? $object->is_signed : 0;
    $epObject->is_asst_backup = isset($object->is_asst_backup) ? $object->is_asst_backup : 0;
    $epObject->backuped_date = isset($object->backuped_date) ? $object->backuped_date : 0;
    $epObject->is_asst_pickup = isset($object->is_asst_pickup) ? $object->is_asst_pickup : 0;
    $epObject->chosen_date = isset($object->chosen_date) ? $object->chosen_date : 0;
    $epObject->is_asst_retouched = isset($object->is_asst_retouched) ? $object->is_asst_retouched : 0;
    $epObject->asstretouched_date = isset($object->asstretouched_date) ? $object->asstretouched_date : 0;
    $epObject->score = isset($object->score) ? $object->score : 0;
    $epObject->score2 = isset($object->score2) ? $object->score2 : 0;
    $epObject->score_detail = isset($object->score_detail) ? $object->score_detail : '';
    $epObject->is_admin_checked = isset($object->is_admin_checked) ? $object->is_admin_checked : 0;
    $epObject->checked_date = isset($object->checked_date) ? $object->checked_date : 0;
    $epObject->is_admin_retouched = isset($object->is_admin_retouched) ? $object->is_admin_retouched : 0;
    $epObject->adminretouched_date = isset($object->adminretouched_date) ? $object->adminretouched_date : 0;
    $epObject->is_choose_designer = isset($object->is_choose_designer) ? $object->is_choose_designer : 0;
    $epObject->choosedesigner_date = isset($object->choosedesigner_date) ? $object->choosedesigner_date : 0;
    $epObject->is_des_retouched = isset($object->is_des_retouched) ? $object->is_des_retouched : 0;
    $epObject->retouched_date = isset($object->retouched_date) ? $object->retouched_date : 0;
    $epObject->is_admin_sorted = isset($object->is_admin_sorted) ? $object->is_admin_sorted : 0;
    $epObject->sorted_date = isset($object->sorted_date) ? $object->sorted_date : 0;
    $epObject->prearrange_date = isset($object->prearrange_date) ? $object->prearrange_date : 0;
    $epObject->ub_akl = isset($object->ub_akl) ? $object->ub_akl : 0;
    $epObject->ub_syd = isset($object->ub_syd) ? $object->ub_syd : 0;
    $epObject->ub_mel = isset($object->ub_mel) ? $object->ub_mel : 0;
    $epObject->ub_nyc = isset($object->ub_nyc) ? $object->ub_nyc : 0;
    $epObject->ub_bne = isset($object->ub_bne) ? $object->ub_bne : 0;
    $epObject->ub_xtrao = isset($object->ub_xtrao) ? $object->ub_xtrao : 0;
    $epObject->is_asst_arranged = isset($object->is_asst_arranged) ? $object->is_asst_arranged : 0;
    $epObject->authorarranged_date = isset($object->authorarranged_date) ? $object->authorarranged_date : 0;
    $epObject->is_asst_received = isset($object->is_asst_received) ? $object->is_asst_received : 0;
    $epObject->authorreceived_date = isset($object->authorreceived_date) ? $object->authorreceived_date : 0;
    $epObject->is_asst_published = isset($object->is_asst_published) ? $object->is_asst_published : 0;
    $epObject->published_date = isset($object->published_date) ? $object->published_date : 0;
    $epObject->is_confirm_published = isset($object->is_confirm_published) ? $object->is_confirm_published : 0;
    $epObject->confirmpublished_date = isset($object->confirmpublished_date) ? $object->confirmpublished_date : 0;
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->task_id = $epObject->task_id;
    $object->parent_trackId = $epObject->parent_trackId;
    $object->transition_id = $epObject->transition_id;
    $object->is_canceled = $epObject->is_canceled;
    $object->is_completed = $epObject->is_completed;
    $object->is_modified = $epObject->is_modified;
    $object->model_id = $epObject->model_id;
    $object->state_id = $epObject->state_id;
    $object->branch = $epObject->branch;
    $object->created_date = $epObject->created_date;
    $object->deadline = $epObject->deadline;
    $object->photographer_id = $epObject->photographer_id;
    $object->photographer2_id = $epObject->photographer2_id;
    $object->designer_id = $epObject->designer_id;
    $object->customer_id = $epObject->customer_id;
    $object->bride_name = $epObject->bride_name;
    $object->groom_name = $epObject->groom_name;
    $object->is_wedding = $epObject->is_wedding;
    $object->wedding_date = $epObject->wedding_date;
    $object->culture1 = $epObject->culture1;
    $object->culture2 = $epObject->culture2;
    $object->ceremony = $epObject->ceremony;
    $object->reception = $epObject->reception;
    $object->wedding_color = $epObject->wedding_color;
    $object->pi_quantity = $epObject->pi_quantity;
    $object->sent_date = $epObject->sent_date;
    $object->received_date = $epObject->received_date;
    $object->receiver = $epObject->receiver;
    $object->company = $epObject->company;
    $object->code = $epObject->code;
    $object->package_number = $epObject->package_number;
    $object->comment = $epObject->comment;
    $object->custom_assignee_id = $epObject->custom_assignee_id;
    $object->custom_assigner_id = $epObject->custom_assigner_id;
    $object->custom_task = $epObject->custom_task;
    $object->is_signed = $epObject->is_signed;
    $object->is_asst_backup = $epObject->is_asst_backup;
    $object->backuped_date = $epObject->backuped_date;
    $object->is_asst_pickup = $epObject->is_asst_pickup;
    $object->chosen_date = $epObject->chosen_date;
    $object->is_asst_retouched = $epObject->is_asst_retouched;
    $object->asstretouched_date = $epObject->asstretouched_date;
    $object->score = $epObject->score;
    $object->score2 = $epObject->score2;
    $object->score_detail = $epObject->score_detail;
    $object->is_admin_checked = $epObject->is_admin_checked;
    $object->checked_date = $epObject->checked_date;
    $object->is_admin_retouched = $epObject->is_admin_retouched;
    $object->adminretouched_date = $epObject->adminretouched_date;
    $object->is_choose_designer = $epObject->is_choose_designer;
    $object->choosedesigner_date = $epObject->choosedesigner_date;
    $object->is_des_retouched = $epObject->is_des_retouched;
    $object->retouched_date = $epObject->retouched_date;
    $object->is_admin_sorted = $epObject->is_admin_sorted;
    $object->sorted_date = $epObject->sorted_date;
    $object->prearrange_date = $epObject->prearrange_date;
    $object->ub_akl = $epObject->ub_akl;
    $object->ub_syd = $epObject->ub_syd;
    $object->ub_mel = $epObject->ub_mel;
    $object->ub_nyc = $epObject->ub_nyc;
    $object->ub_bne = $epObject->ub_bne;
    $object->ub_xtrao = $epObject->ub_xtrao;
    $object->is_asst_arranged = $epObject->is_asst_arranged;
    $object->authorarranged_date = $epObject->authorarranged_date;
    $object->is_asst_received = $epObject->is_asst_received;
    $object->authorreceived_date = $epObject->authorreceived_date;
    $object->is_asst_published = $epObject->is_asst_published;
    $object->published_date = $epObject->published_date;
    $object->is_confirm_published = $epObject->is_confirm_published;
    $object->confirmpublished_date = $epObject->confirmpublished_date;
    return $object;
  }
}
?>
